import {IResourceManager} from "../Resources/IResourceManager";
import {IUIFormHelper} from "./IUIFormHelper";
import {IUIForm} from "./IUIForm";

export interface IUIManager {
    SetResourceManager(resourceManager: IResourceManager): void;

    SetUIFormHelper(uiFormHelper: IUIFormHelper): void;

    init(serialIds:Map<number,string>,resdir:string):void;

    HasUIForm(serialId: number): boolean;

    GetUIForm(serialId: number): IUIForm;
    GetAllLoadedUIForms(): IUIForm[];

    OpenUIForm(serialId:number,userdata?):number;

    CloseUIForm(serialId:number|IUIForm,userdata?):void;
    GetCurrentUIForm():IUIForm;
}